package com.weiqiao.api.repository;

import org.bson.Document;
import org.bson.conversions.Bson;

import java.util.List;

/**
 * @author ChenYF
 * @Description
 * @Date 2020/7/28 19:06
 */
public interface IOrderApiRepository {

    /**
     * 添加订单
     *
     * @param company_id
     * @param doc
     * @return
     */
    boolean addOrder(int company_id, Document doc);

    /**
     * 订单列表
     * @param company_id 公司id
     * @param doc
     * @param sort
     * @param skep
     * @param limit
     * @return
     */
    List<String> getOrderListAndPage(int company_id, Document doc, Bson sort, int skep, int limit);

    /**
     * 获取总条数
     * @param company_id
     * @param doc
     * @return
     */
    int countInfoNum(int company_id, Document doc);
}
